package com.xyt.imei.core.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.luminary.common.framework.dao.GenericDao;
import com.luminary.common.framework.service.impl.GenericServiceImpl;
import com.xyt.imei.core.dao.UserDao;
import com.xyt.imei.core.model.po.User;
import com.xyt.imei.core.service.UserService;

@Service
public class UserServiceImpl extends GenericServiceImpl<User, Integer> implements UserService {

	@Autowired
	private UserDao userDao;
	
	@Override
	protected GenericDao<User, Integer> getGenericDao() {
		return this.userDao;
	}

	@Override
	public User findByUsername(String username) throws Exception {
		return userDao.selectByUsername(username);
	}
	
}
